<template>
	<view class="rich-text">
		<rich-text :nodes="list.buyorder"></rich-text>
	</view>
</template>

<script>
	import { getOthersApi } from '@/api/others'
	import { apiName, apiUrl } from '@/config'
	export default {
		data() {
			return {
				list:[],
				content:''
			};
		},
		onLoad(){
			this.RichTextPage()
		},
		methods:{
			RichTextPage(){
				uni.request({
				    url: apiUrl + apiName + '/common/setting', 
				    method: 'POST',
				    data: {},
				    header: {
				        'Content-Type': 'application/json'
				    },
				    success:(res)=> {
				        // 请求成功时处理返回的数据
				        console.log('999999', res.data);
						this.list = res.data.result.agreement;
				    },
				    fail: function (err) {
				        // 请求失败时处理错误
				        console.error('666666', err);
				    }
				});
			}
		}
	}
</script>

<style>

</style>
